package cn.chenfyuan.demoapplication.mapper;

import java.util.List;

import cn.chenfyuan.demoapplication.entity.Permission;
import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author linweijian
 * @since 2018-08-31
 */
public interface PermissionMapper extends BaseMapper<Permission> {

	List<Permission> selectPage(@Param("depId")Page<Permission> page, @Param("vo") Permission vo);

	/**
	 * 根据用户账号获取用户权限
	 * @param account
	 * @return
	 */
	List<String> getPermissionsByAccount(String account);


}
